import request from '@/config/axios'

// 护理记录 VO
export interface Nurse_recordsVO {
  id: number // 主键
  nurseTime: Date // 护理日期
  nurser: string // 护理人
  elden: string // 护理对象
  nurseDetails: string // 护理详情
  nurseLevel: string // 护理等级
}

// 护理记录 API
export const Nurse_recordsApi = {
  // 查询护理记录分页
  getNurse_recordsPage: async (params: any) => {
    return await request.get({ url: `/yyzx/nurse_records/page`, params })
  },

  // 查询护理记录详情
  getNurse_records: async (id: number) => {
    return await request.get({ url: `/yyzx/nurse_records/get?id=` + id })
  },

  // 新增护理记录
  createNurse_records: async (data: Nurse_recordsVO) => {
    return await request.post({ url: `/yyzx/nurse_records/create`, data })
  },

  // 修改护理记录
  updateNurse_records: async (data: Nurse_recordsVO) => {
    return await request.put({ url: `/yyzx/nurse_records/update`, data })
  },

  // 删除护理记录
  deleteNurse_records: async (id: number) => {
    return await request.delete({ url: `/yyzx/nurse_records/delete?id=` + id })
  },

  // 导出护理记录 Excel
  exportNurse_records: async (params) => {
    return await request.download({ url: `/yyzx/nurse_records/export-excel`, params })
  },
}